<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class Emos_Application_Application {
    
    protected $_autoloader;
    
    protected $_bootstrap;
    
    public function __construct($options = array()) {
        
        require_once 'Emos/Loader/Autoloader.php';
        $this->_autoloader = new Emos_Loader_Autoloader($options);
        
        spl_autoload_register(array($this->_autoloader,'autoload'));
        
    }
    
    public function bootstrap(){
        $options = array('options');
        $this->_bootstrap = new Emos_Application_Bootstrap_Bootstrap($options); 
        
        return $this->_bootstrap;
    }
    
    /**
     * @desc set options with array options
     * @param type $options
     * @return type 
     */
    public function setOptions($options = array()){
        
        if (!$options)
            return false;
        
        $this->_option = $options;
        
        return $this;
    }
    
}